package com.market.dao;

import java.util.List;

import com.market.domain.Product;
import com.market.domain.ProductPrice;
import com.market.domain.Weekly;

public interface WeeklyDao extends GenericDao<Weekly, Long> {
	
	
	/**
	 * This method find all product the inventory is not zero, but not in the 
	 * specified weekly
	 * 
	 * @param weekly
	 * @return
	 */
	public List<Product> findProductsInStockNotInWeekly(Weekly weekly);
	
	/**
	 * This method load all products related to specific week;
	 * @param weeklyProduct
	 * @return
	 */
	public List<ProductPrice> findProductPrices(Weekly weeklyProduct);
	
	
	/**
	 * This method load all weeklys are active.
	 * @return
	 */
	public List<Weekly> findActiveWeeklys();

}
